{% extends 'base.html' %}

{% block title %}修改密码{% endblock %}

{% block content %}
{% if messages %}
{% for message in messages %}
<div class="alert alert-error">
{{ message }}
</div>
{% endfor %}
{% endif %}
<div class="content">
<table align="center">
<form action='' method='POST'>{% csrf_token %}
<tr height="50">
    <td colspan="2">
    <h1 style="font-size:18px;">修改密码</h1>
    </td>
</tr>
<tr height="35">
    <td width="70"><label for="id_old_password">旧密码:</label></td>
    <td>{{ form.old_password }}</td>
</tr>
<tr height="35">
    <td><label for="id_new_password1">新密码:</label></td>
    <td>{{ form.new_password1 }}</td>
</tr>
<tr height="35">
    <td><label for="id_new_password2">新密码确认:</label></td>
    <td>{{ form.new_password2 }}</td>
</tr>
<tr height="50">
    <td colspan="2">
    <input type="submit" value="确认修改" class="btn btn-primary" />&nbsp;&nbsp;<a href="/accounts/">返回</a>
    </td>
</tr>
</table>
</form>
</div>
{% endblock %}
